package com.itheima.reggie.common;

import com.itheima.reggie.domain.Employee;

public class EmployeeHolder {
    private static  final  ThreadLocal<Employee> TL=new ThreadLocal<>();

    // 然后再定义三个方法
    // 存
    public static void set(Employee employee){
        TL.set(employee);
    }

    // 存
    public static Employee get(){
        return TL.get();
    }
    // 删
    public static void remove(){
        TL.remove();
    }
}
